import request from '@/utils/request'

// 查询收款方式列表
export function listPaidType(query) {
  return request({
    url: '/house_sale/PaidType/list',
    method: 'get',
    params: query
  })
}

// 查询收款方式详细
export function getPaidType(paidtypeid) {
  return request({
    url: '/house_sale/PaidType/' + paidtypeid,
    method: 'get'
  })
}

// 新增收款方式
export function addPaidType(data) {
  return request({
    url: '/house_sale/PaidType',
    method: 'post',
    data: data
  })
}

// 修改收款方式
export function updatePaidType(data) {
  return request({
    url: '/house_sale/PaidType',
    method: 'put',
    data: data
  })
}

// 删除收款方式
export function delPaidType(paidtypeid) {
  return request({
    url: '/house_sale/PaidType/' + paidtypeid,
    method: 'delete'
  })
}
